package com.hdax.until;

import com.hdax.vo.ActiveUser;
import org.apache.shiro.SecurityUtils;

public class UserIdUntil {
    public static Integer getUserId() {
        ActiveUser activeUser = (ActiveUser) SecurityUtils.getSubject().getPrincipal();
        return activeUser.getId();
    }
}
